package com.bestv.search.common.model;

import java.io.Serializable;
import java.util.Date;

public class InfoHeaderItem implements Serializable {
    private static final long serialVersionUID = 3585942437148070341L;
    private long info_header_id;
    private long info_id;
    private int info_order;
    private String description;
    private int original_info_order;
    private Date updateTime;

    // For json convert
    private String contentVersion;
    private int contentFlag;

    public long getInfo_header_id() {
        return info_header_id;
    }

    public void setInfo_header_id(long info_header_id) {
        this.info_header_id = info_header_id;
    }

    public long getInfo_id() {
        return info_id;
    }

    public void setInfo_id(long info_id) {
        this.info_id = info_id;
    }

    public int getInfo_order() {
        return info_order;
    }

    public void setInfo_order(int info_order) {
        this.info_order = info_order;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getOriginal_info_order() {
        return original_info_order;
    }

    public void setOriginal_info_order(int original_info_order) {
        this.original_info_order = original_info_order;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getContentVersion() {
        return contentVersion;
    }

    public void setContentVersion(String contentVersion) {
        this.contentVersion = contentVersion;
    }

    public int getContentFlag() {
        return contentFlag;
    }

    public void setContentFlag(int contentFlag) {
        this.contentFlag = contentFlag;
    }

    @Override
    public int hashCode() {
        return Long.valueOf(info_header_id).hashCode() + Long.valueOf(info_id).hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof InfoHeaderItem) {
            InfoHeaderItem item = (InfoHeaderItem) obj;
            if (this.info_header_id == item.info_header_id && this.info_id == item.info_id) {
                return true;
            }
        }
        return false;
    }
}